/*
 * @Description:
 *
 * @Author: XiongYaoYuan<xiongyaoyuan>
 * @Date: 2023-06-30 20:23:26
 * @FilePath: /yuxiuproweb/src/api/asc/summary/index.js
 */
import request from "@/utils/request";

// 查询价格组成列表
export function listSummary(query) {
  return request({
    url: "/pro/summary/list",
    method: "get",
    params: query,
  });
}

// 查询价格组成详细
export function getSummary(orderPriceSummaryId) {
  return request({
    url: "/pro/summary/" + orderPriceSummaryId,
    method: "get",
  });
}

// 新增价格组成
export function addSummary(data) {
  return request({
    url: "/pro/summary",
    method: "post",
    data: data,
  });
}

// 修改价格组成
export function updateSummary(data) {
  return request({
    url: "/pro/summary",
    method: "put",
    data: data,
  });
}

// 删除价格组成
export function delSummary(orderPriceSummaryId) {
  return request({
    url: "/pro/summary/" + orderPriceSummaryId,
    method: "delete",
  });
}
